<template>
	<div class="index">
		<company-header></company-header>
		<company-content
		   :CompanyContent = "CompanyContent"
		   @addCompanyInfo = "getCompanyInfo"
		></company-content>
	</div>
</template>

<script>
	import CompanyHeader from './components/Header'
	import CompanyContent from './components/Content'
	export default {
		name:"company",
		components:{
			CompanyHeader,
			CompanyContent
		},
		data(){
			return {
				CompanyContent:[]
			}
		},
		methods:{
			getCompanyInfo(){
				this.axios.get('http://192.168.0.101:5050/ColtdDate')
				          .then(res=>{
				          	 res = res.data
				          	 if(res.msg && res.code == 1){
				          	 	 this.CompanyContent = res.msg
				          	 }
				})
			}
		},
		computed:{
			
		},
		mounted(){
			this.getCompanyInfo()
		},
		activated(){
//			console.log(1);
		}
   }
</script>

<style>
</style>